<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Vue 3 CDN Example</title>
    <!-- 引入Vue 3 CDN -->
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
</head>
<body>
<div id="app">
    {{ message }}
</div>

<script>
    const { createApp } = Vue; // 从Vue导入createApp函数

    // 创建Vue应用实例
    const app = createApp({
        data() {
            return {
                message: 'Hello, Vue 3!'
            };
        }
    });

    // 挂载Vue应用到id为app的DOM元素上
    app.mount('#app');
</script>
</body>
</html>